<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta charset="utf-8">
		<title>项目宝</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<!--标准mui.css-->
		<link rel="stylesheet" href="<s:url value='css/mui.min.css'/>">
		<!--App自定义的css-->
		<link rel="stylesheet" type="text/css" href="<s:url value='css/app.css'/>" />
		<link rel="stylesheet" type="text/css" href="<s:url value='css/custom.css'/>" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav" style="color: red;">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			  <a class="mui-btn-link mui-pull-right" id="editTrack">编辑</a>
			<h1 class="mui-title">进度编辑</h1>
		</header>

		<div class="mui-content">

			<form class="mui-input-group" method="post" action="<s:url value='saveTrack.action'/>">
			     <input type="hidden" name="pjTrack.trackId" id="trackId" value="<s:property value='pjTrack.trackId'/>">
				<div class="mui-input-row" style="margin: 5px;">
					<s:select id="pjId" name="pjTrack.pjId" list="projectInfos"  listKey="pjId" listValue="pjName"  selectedvalue="<s:property value='pjTrack.pjId'/>" label="项目名称："></s:select>
				</div>
                <div class="mui-input-row" style="margin: 5px;">
                    <s:select id="pjUserId"  name="pjTrack.pjUserId" list="projectUserInfos"  listKey="pjUserId" listValue="pjUserName"  selectedvalue="<s:property value='pjTrack.pjUserId'/>" label="指定人员："></s:select>
                </div>
				<div class="mui-input-row" style="margin: 5px;">
					<s:select id="lever" name="pjTrack.lever" list="#{'1':'易','2':'中','3':'难'}" headvalue="1"  selectedvalue="<s:property value='pjTrack.lever'/>" label="难度级别："></s:select>
				</div>
				<div class="mui-input-row" style="margin: 5px;">
					<label>开始日期</ri>：</label>
					<input type="date" id="trackStart" name="pjTrack.trackStart" class="mui-input-clear" value="<s:property value='pjTrack.trackStart'/>">
				</div>
				<div class="mui-input-row" style="margin: 5px;">
					<label>预计结束：</label>
					<input type="date" id="trackEnd" name="pjTrack.trackEnd" class="mui-input-clear" value="<s:property value='pjTrack.trackEnd'/>" placeholder="预计结束日期..">
				</div>
                <div class="mui-input-row" style="margin: 5px;">
                    <label>预计时间：</label>
                    <input type="text" id="trackExTime" name="pjTrack.trackExTime" class="mui-input-clear" value="<s:property value='pjTrack.trackExTime'/>" placeholder="预计完成用时..">
                </div>
				<div class="mui-input-row" style="margin: 5px;">
					<label>实际结束：</label>
					<input type="date" id="trackRealEnd" name="pjTrack.trackRealEnd" class="mui-input-clear" value="<s:property value='pjTrack.trackRealEnd'/>">
				</div>
                <div class="mui-input-row" style="margin: 5px;">
                    <label>实际时间：</label>
                    <input type="text" id="trackRealTime" name="pjTrack.trackRealTime" class="mui-input-clear" value="<s:property value='pjTrack.trackRealTime'/>">
                </div>
                <div class="mui-input-row" style="margin: 5px;">
                    <label>实际进度：</label>
                    <input type="text" id="trackPct" name="pjTrack.trackPct" class="mui-input-clear" value="<s:property value='pjTrack.trackPct'/>"  placeholder="完成的百分比..">
                </div>
				<div class="mui-textarea-row" style="margin:10px 20px;">
					<label>进度说明：</label>
					<textarea id="command" name="pjTrack.command"  rows="4"  class="mui-input-speech mui-input-clear"><s:property value='pjTrack.command'/></textarea>
				</div>
				<hr style="width:90%">
				
                <div class="mui-button-row" id="savetest">
                    <button type="submit" class="mui-btn mui-btn-primary">保存</button>&nbsp;&nbsp;
                    <button type="reset" class="mui-btn mui-btn-danger">重置</button>
                </div>

			</form>
		</div>
		<script src="<s:url value='js/mui.min.js'/>"></script>
		<script>

			mui.init({
				swipeBack: true //启用右滑关闭功能
			});

			
            mui('#savetest')[0].style.display="none";
            mui('body').on('tap','#editTrack',function(){
                mui('#savetest')[0].style.display="block";
            }); 
            

		</script>
	</body>

</html>